package cn.snowheart.iterator;

import cn.snowheart.iterator.menu.Menu;
import cn.snowheart.iterator.menu.PancakeMenu;
import cn.snowheart.iterator.menu.PizzaMenu;
import cn.snowheart.iterator.menu.Waiter;

import java.util.ArrayList;

/**
 * 测试主类
 *
 * @author liuwanxiang
 * @version 2019/07/09
 */
public class MenuTest {

    public static void main(String[] args) {

        ArrayList<Menu> menus = new ArrayList<>();
        menus.add(new PancakeMenu());
        menus.add(new PizzaMenu());

        Waiter waiter = new Waiter(menus);
        waiter.printMenu();

    }

}
